/**
 * @author mr.doob / http://mrdoob.com/
 *
 * parameters = {
 *  color: <hex>,
 *  program: <function>,
 *  opacity: <float>,
 *  blending: THREE.NormalBlending
 * }
 */

GLE.ParticleCanvasMaterial = function ( parameters ) {

	GLE.Material.call( this, parameters );

	parameters = parameters || {};

	this.color = parameters.color !== undefined ? new GLE.Color( parameters.color ) : new GLE.Color( 0xffffff );
	this.program = parameters.program !== undefined ? parameters.program : function ( context, color ) {};

};

GLE.ParticleCanvasMaterial.prototype = new GLE.Material();
GLE.ParticleCanvasMaterial.prototype.constructor = GLE.ParticleCanvasMaterial;
